import gulp from 'gulp'
import uglify from 'gulp-uglify' //js压缩

const src_file = [
  './*.js',
  '!./gulpfile.js'
]

const dist_path = './dist'

gulp.task('default', function() {
  return gulp.src(src_file)
            .pipe(uglify({mangle: true}))
            .pipe(gulp.dest(dist_path))
})

